<!DOCTYPE html>

<html lang="${lang}">
    <head>
        <title>#{get 'title' /}</title>
        <meta charset="${_response_encoding}" />
        <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/crud.css'}" />
        <link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/main.css'}" />
        <link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/admin.css'}" />
    </head>
    <body id="crud">
		<div align="center" class="header">
			<a href="@{CRUD.index()}">&{'crud.title'}</a>
			<img alt="Immunology" height="80px" src="/public/images/elements/immunologyHeader.png" />
			<div id="lang">
	            <a href='@{Application.changeLanguage("uk")}'>
	            	<img border="0" src='/public/images/flags/ua.png' title="Українська" alt="Українська" width="32" height="32"/>
	            </a>
	            <a href='@{Application.changeLanguage("ru")}'>
	            	<img border="0" src='/public/images/flags/ru.png' title="Русский" alt="Русский" width="32" height="32"/>
	            </a>
	            <a href='@{Application.changeLanguage("en")}'>
	            	<img border="0" src='/public/images/flags/uk.png' title="English" alt="English" width="32" height="32"/>
	            </a>
            </div>
		</div>

#{if request.actionMethod != 'index'}
            <div id="crudBreadcrumb">
                #{crud.navigation /}
            </div>
#{/if}

#{if flash.success}
            <div class="crudFlash flashSuccess">
                ${flash.success}
            </div>
#{/if}
#{if flash.error || error}
            <div class="crudFlash flashError">
                ${error ?: flash.error}
            </div>
#{/if}

        <div id="crudContent">
#{doLayout /}
        </div>

        <div class="footer">
            © Immunology System 2012
        </div>

    </body>
</html>
